//
//  ReimburseCell.m
//  dyseller
//
//  Created by 红喇叭 on 2017/12/9.
//  Copyright © 2017年 红喇叭. All rights reserved.
//

#import "ReimburseCell.h"

@implementation ReimburseCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        [self initView];
    }
    return self;
}

- (void)initView{
    self.contentView.backgroundColor = UIColorFromRGB(0xE0E0E0);
    
    UIView *backview = [[UIView alloc] init];
    backview.backgroundColor = kWhiteColor;
    backview.layer.cornerRadius = 5;
    backview.layer.masksToBounds = YES;
    [self.contentView addSubview:backview];
    backview.sd_layout.leftSpaceToView(self.contentView, GETWITH(40)).rightSpaceToView(self.contentView,GETWITH(40)).topSpaceToView(self.contentView, 10).bottomSpaceToView(self.contentView, 10);
    
    UILabel *dindang = [[UILabel alloc] init];
    dindang.text = @"订单号:";
    dindang.font = font14;
    [backview addSubview:dindang];
    dindang.sd_layout.topSpaceToView(backview, 15).leftSpaceToView(backview, GETWITH(40)).widthIs(GETWITH(120)).heightIs(20);
    
    _orderNumber = [[UILabel alloc] init];
    _orderNumber.textColor = UIColorFromRGB(0xff9f4a);
    _orderNumber.font  = font15;
    [backview addSubview:_orderNumber];
    _orderNumber.sd_layout.leftSpaceToView(dindang, GETWITH(10)).topEqualToView(dindang).rightSpaceToView(backview, GETWITH(30)).heightIs(20);
    
    UIView *lineV = [[UIView alloc] init];
    lineV.backgroundColor = kGrayColor;
    [backview addSubview:lineV];
    lineV.sd_layout.leftEqualToView(dindang).rightSpaceToView(backview, 0).topSpaceToView(dindang, 10).heightIs(0.5 );
    
    UILabel *tukua = [[UILabel alloc] init];
    tukua.text = @"退款金额";
    tukua.textColor = UIColorFromRGB(0xb0b0b0);
    tukua.textAlignment = NSTextAlignmentCenter;
    tukua.font = font14;
    [backview addSubview:tukua];
    tukua.sd_layout.topSpaceToView(lineV,20).centerXEqualToView(backview).widthIs(100).heightIs(20);
    
    _orderprice = [[UILabel alloc] init];
    _orderprice.textAlignment = NSTextAlignmentCenter;
    _orderprice.textColor = UIColorFromRGB(0x333333);
    _orderprice.font = font20;
    [backview addSubview:_orderprice];
    _orderprice.sd_layout.topSpaceToView(tukua, 5).centerXEqualToView(backview).widthIs(SCREEN_W).heightIs(24);
    
    _remburseTimer = [[UILabel alloc] init];
    _remburseTimer.font = font15;
    _remburseTimer.textAlignment = NSTextAlignmentRight;
    [backview addSubview:_remburseTimer];
    _remburseTimer.sd_layout.rightSpaceToView(backview, GETWITH(30)).bottomSpaceToView(backview, 10).widthIs(200).heightIs(20);
    
}


@end
